package com.hntest.dao;

import com.hntest.entity.Grade;
import com.hntest.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface StudentDao {
    //分页前求总记录数
    public int getCounts(Student student);

    //分页茶当前页数据
    public List<Student> getListByPage(Map map);

    public List<Grade> getAllGrade();
    //删除
    int delete(int sno);

    //新增
    int insert(Student stu);

    //根据学号查询原始记录
    Student getStudentBySno(int sno);

    //更新最新的学生信息
    int update(Student stu);



}
